﻿<UserControl x:Class="CodeIn.Modules.Misc.SystemInfo.SystemInfoView"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:chart="clr-namespace:AurelienRibon.Ui.Chart;assembly=AurelienRibon.Ui.Chart"
		xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
		xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="300"
		d:DesignWidth="300">

	<Grid Background="#FFDABB">
		
		<UniformGrid Rows="1">
			<UniformGrid.Resources>
				<SolidColorBrush x:Key="GridLineStrokeBrush" Color="#DFB593" />
			</UniformGrid.Resources>
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Width="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
		</UniformGrid>

		<UniformGrid Columns="1">
			<UniformGrid.Resources>
				<SolidColorBrush x:Key="GridLineStrokeBrush" Color="#DFB593" />
			</UniformGrid.Resources>
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
			<Rectangle Height="1" Fill="{StaticResource GridLineStrokeBrush}" Stretch="Fill" />
		</UniformGrid>

		<!--RAM-->
		<chart:ScrollLineGraph PointsSource="{Binding RamPoints}" YMin="0" YMax="{Binding TotalPhysicalMemory}"
				VisibleUnits="100" ClipToBounds="True" Stroke="#E338A5" StrokeThickness="1" Fill="#55E338A5" />

		<!--CPU-->
		<chart:ScrollLineGraph PointsSource="{Binding CpuPoints}" YMin="0" YMax="100" VisibleUnits="100"
				ClipToBounds="True" Stroke="#3A7FED" StrokeThickness="1" Fill="#553A7FED" />

		<Border HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0" BorderBrush="#FFFFFF"
				BorderThickness="1" CornerRadius="3" Padding="10,3" Background="#88FFFFFF">
			<StackPanel>
				<StackPanel Orientation="Horizontal">
					<Rectangle Width="10" Height="10" Fill="#3A7FED" Margin="0,0,10,0" HorizontalAlignment="Center" />
					<TextBlock Text="CPU load" HorizontalAlignment="Center" />
				</StackPanel>
				<StackPanel Orientation="Horizontal">
					<Rectangle Width="10" Height="10" Fill="#E338A5" Margin="0,0,10,0" HorizontalAlignment="Center" />
					<TextBlock Text="Memory" HorizontalAlignment="Center" />
				</StackPanel>
			</StackPanel>
		</Border>

	</Grid>

</UserControl>
